home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / sendmail.8.8.4.tar.gz / sendmail.8.8.4.tar / sendmail-8.8.4 / smrsh / Makefile.dist < prev    next >
Makefile  |  1996-09-25  |  2KB  |  77 lines

  1. #
  2. #  This Makefile is designed to work on the old "make" program.  It does
  3. #  not use the obj subdirectory.  It also does not install documentation
  4. #  automatically -- think of it as a quick start for sites that have the
  5. #  old make program (I recommend that you get and port the new make if you
  6. #  are going to be doing any signficant work on sendmail).
  7. #
  8. #    @(#)Makefile.dist    8.2 (Berkeley) 9/25/96
  9. #
  10.  
  11. # use O=-O (usual) or O=-g (debugging)
  12. O=    -O
  13.  
  14. # location of sendmail source directory
  15. SRCDIR=    ../src
  16.  
  17. # environment definitions (e.g., -D_AIX3)
  18. ENVDEF=
  19.  
  20. # include directories
  21. INCDIRS=-I${SRCDIR} -I/usr/sww/include
  22.  
  23. # loader options
  24. LDOPTS=
  25.  
  26. # library directories
  27. LIBDIRS=-L/usr/sww/lib
  28.  
  29. # libraries required on your system
  30. LIBS=    
  31.  
  32. # location of smrsh binary (usually /usr/libexec or /usr/etc)
  33. BINDIR=    ${DESTDIR}/usr/libexec
  34.  
  35. # additional .o files needed
  36. OBJADD=
  37.  
  38. ###################  end of user configuration flags  ######################
  39.  
  40. CFLAGS=    -I. $O ${INCDIRS} ${ENVDEF}
  41.  
  42. OBJS=    smrsh.o ${OBJADD}
  43.  
  44. BINOWN=    bin
  45. BINGRP=    bin
  46. BINMODE=555
  47.  
  48. ALL=    smrsh smrsh.0
  49.  
  50. all: ${ALL}
  51.  
  52. smrsh: ${BEFORE} ${OBJS}
  53.     ${CC} -o smrsh ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
  54.  
  55. # Which *roff program has -mandoc support
  56. NROFF=    groff -Tascii
  57. #NROFF=    nroff -h
  58. MANDOC=    -mandoc
  59.  
  60. smrsh.0: smrsh.8
  61.     ${NROFF} ${MANDOC} smrsh.8 > smrsh.0
  62.  
  63. install: install-smrsh install-docs
  64.  
  65. install-smrsh: smrsh
  66.     install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} smrsh ${BINDIR}
  67.  
  68. # doesn't actually install them -- you may want to install pre-nroff versions
  69. install-docs: smrsh.0
  70.  
  71. clean:
  72.     rm -f ${OBJS} smrsh smrsh.0
  73.  
  74. # dependencies
  75. #   gross overkill, and yet still not quite enough....
  76. ${OBJS}: ${SRCDIR}/conf.h
  77.